rolesystem.roles.auction
Class Seller

java.lang.Object
  extended by rolesystem.roles.auction.Seller

public abstract class Seller
extends java.lang.Object

This role is the seller of an auction. Keywords: auction, seller.


Field Summary
static KnownEvent KE_pay
          An auctioneer pays.
static KnownEvent KE_saleAccepted
          An auctioneer notifies that my sale has been accepted.
static KnownEvent KE_saleRefused
          An auctioneer notifies that my sale has been refused.
static KnownEvent KE_unsold
          An auctioneer notifies that my good is unsold.
static java.lang.String ROLE_ID
          Role identifier.
 
Constructor Summary
Seller()
           
 
Method Summary
static RoleAction putOnSale(int addressee, Sale content)
          Puts a good on sale.
static RoleAction reqSale(int addressee)
          Requests to put a good on sale.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROLE_ID

public static final java.lang.String ROLE_ID
Role identifier.

See Also:
Constant Field Values

KE_saleAccepted

public static final KnownEvent KE_saleAccepted
An auctioneer notifies that my sale has been accepted. Sender role: Auctioneer


KE_saleRefused

public static final KnownEvent KE_saleRefused
An auctioneer notifies that my sale has been refused. Sender role: Auctioneer


KE_unsold

public static final KnownEvent KE_unsold
An auctioneer notifies that my good is unsold. Sender role: Auctioneer


KE_pay

public static final KnownEvent KE_pay
An auctioneer pays. Sender role: Auctioneer Content: Payment.

Constructor Detail

Seller

public Seller()
Method Detail

reqSale

public static RoleAction reqSale(int addressee)
Requests to put a good on sale.

Parameters:
addressee - Auctioneer

putOnSale

public static RoleAction putOnSale(int addressee,
                                   Sale content)
Puts a good on sale.

Parameters:
addressee - Auctioneer
content - Characteristics of the sale, i.e. reserve price, good on sale and its description.